package com.hm.base.api;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.alibaba.dubbo.config.annotation.Reference;
import com.hm.base.provider.DemoProvider;

/**
 * @author shishun.wang
 * @date 2018年4月8日 上午11:35:48
 * @version 1.0
 * @describe
 */
@Controller
public class TestApi {

	@Reference
	private DemoProvider demoProvider;

	@RequestMapping
	public void index(HttpServletResponse response) throws IOException {
		response.getWriter().write(demoProvider.sayHello("tom"));
	}
}
